package com.beyond.trace.dy.mapper;

import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.beyond.trace.dy.domain.TraceDyOrder;

/**
 * 采购订单Mapper接口
 * 
 * @author Mr.Yao
 * @date 2022-04-09
 */
public interface TraceDyOrderMapper extends BaseMapper<TraceDyOrder>
{
    /**
     * 查询采购订单
     * 
     * @param orderId 采购订单ID
     * @return 采购订单
     */
    public TraceDyOrder selectTraceDyOrderById(Long orderId);

    /**
     * 查询采购订单列表
     * 
     * @param traceDyOrder 采购订单
     * @return 采购订单集合
     */
    public List<TraceDyOrder> selectTraceDyOrderList(TraceDyOrder traceDyOrder);

    /**
     * 新增采购订单
     * 
     * @param traceDyOrder 采购订单
     * @return 结果
     */
    public int insertTraceDyOrder(TraceDyOrder traceDyOrder);

    /**
     * 修改采购订单
     * 
     * @param traceDyOrder 采购订单
     * @return 结果
     */
    public int updateTraceDyOrder(TraceDyOrder traceDyOrder);

    /**
     * 删除采购订单
     * 
     * @param orderId 采购订单ID
     * @return 结果
     */
    public int deleteTraceDyOrderById(Long orderId);

    /**
     * 批量删除采购订单
     * 
     * @param orderIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteTraceDyOrderByIds(Long[] orderIds);
}
